class ClassLog {
  id;
  date;
  description;
  c_id;
  u_id;
}
class User{
  id;
  name;
  phone;
  email;
  head;
  signature;
  gender;
  password;
}
class ExamLog {
  id;
  date;
  description;
  e_id;
  u_id;
  constructor(date, description, e_id, u_id) {
    this.date = date;
    this.description = description;
    this.e_id = e_id;
    this.u_id = u_id;
  }
}

class Exam {
  id;
  c_id;
  name;
  start_time;
  end_time;
  create_time;
  total_score;
  pass_score;
}

class MyClass {
  id;
  name;
  head;
  create_time;
  code;
}


class Question {
  id;
  /** @type {string} */
  content;
  type;
  u_id;
}

class QuestionImage {
  id;
  src;
  q_id;
}


class QuestionAnswer{
  id;
  answer;
  q_id;
  isRight;
}

class ExamQuestion{
  id;
  e_id;
  q_id;
}

class Tag{
  id;
  name;
}

class QuestionTag{
  id;
  t_id;
  q_id;
}



class UserAnswer{
  id;
  u_id;
  q_id;
  answer;
}

class Grade{
  id;
  u_id;
  e_id;
  grade;
  pass;
  teacherShow;
  userCommit;
  right_count;
}
class UserClass {
  id;
  c_id;
  u_id;
  isTeacher;
  in_review;
}

class ClassNotice{
  id;
  title;
  content;
  u_id;
  c_id;
  datetime;
}

module.exports = {
  ClassLog,
  ExamLog,
  Exam,
  MyClass,
  Question,
  QuestionImage,
  QuestionAnswer,
  UserAnswer,
  Grade,
  UserClass,
  User,
  ClassNotice,
  Tag,
  QuestionTag,
  ExamQuestion
};
